lcIntersection Home

Searches intersection points of 2 graphic objects. The object types can be the following: Line, Construction line, Polyline, Rectangle, Circle, Arc, Ellipse.

 int lcIntersection (
   HANDLE hEnt,
   HANDLE hEnt2,
   int Apparent
 );

Parameters
hEnt
  Handle to first graphic object.
hEnt2
  Handle to second graphic object.
Apparent
  Allows to find intersection point outside of objects limits.
Can be one of the following values:
0 - find intersection point only within objects geometry.
1 - treat first object (hEnt1) as infinite.
2 - treat second objects (hEnt2) as infinite.
3 - treat both objects as infinite.

Return Value

  A number of intersection points.

Remarks

  This function stores found intersection points in inner buffer. Retrieve points from the buffer by subsequent call of the lcInterGetPoint function.

See Also

  Code sample